//
//  KWMStringUtil.h
//  IWant_User
//
//  Created by kevin on 12/10/14.
//  Copyright (c) 2014 kollway. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface KWMStringUtil : NSObject

+ (NSString *)MD5:(NSString *)input;
/**是否是空字符串*/
+ (BOOL)isEmpty:(NSString *)input;
/**是否是空白(有空格都是)的字符串*/
+ (BOOL)isBlank:(NSString *)input;
+ (BOOL)isPhone:(NSString *)input;
+ (NSString *)readableDateString:(NSDate *)date;
+ (NSString *)yearMonthDateString:(NSDate *)date;
+ (NSString *)dateToString:(NSDate *)date format:(NSString *)formatStr;
+ (NSDate *)stringToDate:(NSString *)dateStr format:(NSString *)formatStr;
+ (NSString *)monthDateString:(NSDate *)date;
/**根据文件路径获取文件名*/
+ (NSString *)getFileName:(NSString *)filePath;
+ (NSString *) trimPhoneNumber:(NSString *)string;
/**去除HTML*/
+ (NSString *)flattenHTML:(NSString *)html;
+ (NSString *)getPureText:(NSString *)input;
/**获取短描述,超出范围的用省略号表示*/
+ (NSString *)getShortText:(NSString *)text maxLen:(int)maxLen;
+ (BOOL)isNumberString:(NSString *)input;
+ (NSString *)urlencode:(NSString *)input;
+ (NSString *)fitImageWidthHtmlContent:(NSString *)htmlContent maxWidth:(NSInteger)width;
+ (NSString *) getProviceByIndex:(NSInteger) index;
+ (BOOL)isMobileNumber:(NSString *)mobileNum;
+ (NSString*)encodeBase64String:(NSString *)input;
+ (NSString*)decodeBase64String:(NSString *)input;
+(NSString *) dateformatToYear:(long long) time;


@end